#@admin_layout()
#define admin_body()
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
    <legend>机构树</legend>
</fieldset>

<ul id="banktree"></ul>
#end

#define admin_script()
<script>
    layui.use('tree', function () {

        layui.tree({
            elem: '#banktree',
            nodes: #(nodes),
            click: function(node) {
                console.log(node);
            }
        });
    });
</script>
#end